package com.atguigu.scala.chapter7

import scala.collection.mutable.ListBuffer

/**
 * @author lizikuan
 * @date 2021/5/22 16:21
 */
object $04_MutableList {
  def main(args: Array[String]): Unit = {
    val list = ListBuffer(1, 2, 3, 4, 6)
    val list1 = list.+:(11)
    val list2 = list.:+(22)
    println(list1)
    println(list2)

    list.+=(5)
    list.+=:(2)
    println(list)
  }
}
